//
//  FeedModel.m
//  xxShare
//
//  Created by 柳麟喆 on 2018/3/16.
//  Copyright © 2018年 lzLiu. All rights reserved.
//

#import "FeedModel.h"

@implementation FeedModel

- (instancetype)initWithFeedModel:(NSDictionary *)dict{
    self = [super init];
    if (self) {
        _accountID = dict[@"accountID"];
        _imageName = dict[@"imageName"];
        _name = dict[@"name"];
        _devote = dict[@"devote"];
        _photos = dict[@"photos"];
        _postContent = dict[@"postContent"];
        _tags = dict[@"tags"];
        _location = dict[@"location"];
        _time = dict[@"time"];
        _moneyNum = dict[@"moneyNum"];
        _thumbNum = dict[@"thumbNum"];
        _commentNum = dict[@"commentNum"];
        _topImageWidth = [dict[@"width"] doubleValue];
        _topImageHeight = [dict[@"height"] doubleValue];
    }
    return self;
}

@end
